package com.sc.nft.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.MallMemberEquityTemplate;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.nft.entity.dto.AdminMemberEquityTemplatePageDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 商城会员权益模版 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-03-29
 */
public interface MallMemberEquityTemplateMapper extends BaseMapper<MallMemberEquityTemplate> {

    /**
     * @param page
     * @return
     */
    Page<AdminMemberEquityTemplatePageDTO> getAdminMemberEquityTemplatePageDTO(Page page, @Param("status") Boolean status);

    /**
     * 获取所有已使用的权益模版
     *
     * @return
     */
    List<MallMemberEquityTemplate> templatesAlreadyUsed();
}
